package OlympicGames;

public  class Test extends Athlete {

    public void surveyDive (SkillsDive skillsDive){
        skillsDive.dive();
    }
    public void surveyShoot(SkillsShoot skillsShoot){
        skillsShoot.shoot();
    }
    public void surveySprint(SkillsSprint skillsSprint){
        skillsSprint.sprint();
    }

    public static void main(String []args){
        Test athlete1=new Test();
        athlete1.surveyDive(new AthleteDive());
        athlete1.surveyShoot(new AthleteShoot() );
        athlete1.surveySprint(new AthleteSprint());
        athlete1.introduce("小强",12);
    }
}
